<extend name="layout:index"/>
<block name='content'>
	<div class="mws-panel grid_8">
                	<div class="mws-panel-header">
                    	<span><i class="icon-table"></i> 公告管理-公告列表 </span>
                    </div>
                    <div class="mws-panel-body no-padding">
                    <form action='__MODULE__/article/index' method='get'>
                        <div id="DataTables_Table_1_wrapper" class="dataTables_wrapper" role="grid">
                        <div id="DataTables_Table_1_length" class="dataTables_length">
                        <label>显示 
                        <select size="1" name="num" aria-controls="DataTables_Table_1">
	                        <option value="10" selected="selected">10</option>
	                        <option value="25">25</option>
	                        <option value="50">50</option>
	                        <option value="100">100</option>
                        </select> 页</label>

                        </div>
                        <div class="dataTables_filter" id="DataTables_Table_1_filter">
                        <label>搜索: 
                        <input type="text" aria-controls="DataTables_Table_1" name='search'>
						<input type='submit' value='搜索'>
                        </label>
                        </form>
                        	</div><table class="mws-datatable-fn mws-table dataTable" id="DataTables_Table_1" aria-describedby="DataTables_Table_1_info">
                            <thead>
                                <tr role="row">
                                	<th class="sorting_asc" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending" style="width: 60px;">编号
                                	</th>
                                	<th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending" style="width: 180px;">
                                	文章标题
                                	</th>
	                                <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 173px;">
	                                文章分类</th>
	                                <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="Engine version: activate to sort column ascending" style="width: 135px;">
	                                文章重要性</th>
	                                <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending" style="width: 80px;">
	                                是否显示</th>
	                                <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending" style="width: 152px;">
	                                添加日期</th>
	                                <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending" style="width: 102px;">
	                                操作</th>
                                </tr>
                            </thead>
                            
                        <tbody role="alert" aria-live="polite" aria-relevant="all">
                        		<foreach name='articleRes' item='vo'>
                        		<tr class="odd">
                                    <td class=" sorting_1" >{$vo['article_id']}</td>                                   
                                    <td class=" sorting_2" style='text-align:center'>{$vo['title']}</td>                                  
                                    <td class=" sorting_3" style='text-align:center'>
                                    <if condition='$vo.cat_id eq 13'>
                                    	用户公告
                                    </if>
                                    </td>                                   
                                    <td class=" sorting_4" style='text-align:center'>
                                    <if condition='$vo.article_type eq 0'>
                                    	    普通
                                    	<else />
                                    		置顶
                                    </if>
                                    </td>                                   
                                    <td class=" sorting_5" style='text-align:center'>
                                    	<if condition='$vo.is_open eq 0'>
                                    	    不显示
                                    	<else />
                                    		显示
                                    </if>
                                    </td>                                   
                                    <td class=" sorting_6" style='text-align:center'><?php echo date('Y-m-d H:i:s',$vo['add_time']); ?></td>                                   
                                    <td class=" sorting_6" style='text-align:center'>
                                    	<a href='__MODULE__/article/edit/article_id/{$vo['article_id']}' style='color:green;font-size:18px'title='编辑'><i class="icon-tools"></i></a>
                                    	&nbsp;&nbsp;
                                    	<a href='__MODULE__/article/delete/article_id/{$vo['article_id']}' style='color:red;font-size:20px'  title='删除'><i class="icon-trash"></i></a>
                                        &nbsp;&nbsp;
                                        <a href='__MODULE__/article/see/article_id/{$vo['article_id']}' style='color:#FEB72B;font-size:20px'  title='查看'><i class="icon-bell-2"></i></a>
                                    </td>                                   
                                </tr>
                                </foreach>
                                </tbody>
                                </table>
                                	<div class="dataTables_info" id="DataTables_Table_1_info"></div>
			<div class="dataTables_paginate paging_full_numbers" id="DataTables_Table_1_paginate">
				{$url}
			</div>
		</div>
                    </div>
                </div>
</block>
